<?php
/**
 * Created by PhpStorm.
 * User: xieky
 * Date: 2017/7/17
 * Time: 10:11
 */

namespace common\repositories\myhtsq;

use common\repositories\BaseRepository;
use common\entities\myhtsq\ContractShipmentEntity;


class ContractShipmentRepository
{
    /**
     * 构造方法
     * @param unknown $config (optional)
     */
    public function __construct($config = [])
    {
        parent::__construct($config);
    }


    public static function getContractShipmentInfoByContractId($contractid)
    {
        $query=ContractShipmentEntity::find()
            ->where(['contract_id'=>$contractid])
            ->asArray()
            ->all();
        return $query;
    }
}